﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace RC1
{
    public partial class test : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["user_id"] != null)
            {
                if (Session["user_level"].Equals("2"))
                {
                    Response.Redirect("admin/Default.aspx");
                }
                else if (Session["user_level"].Equals("1"))
                {
                    Response.Redirect("teacher/Default.aspx");
                }
                else
                {
                    Response.Redirect("student/Default.aspx");
                }
            }
            else
            {
                Server.Transfer("login.aspx");
            }
        }
    }
}